package com.wejoy.video.middle.station.data.exception;

import com.wejoy.video.middle.station.data.vo.ReturnCode;

/**
 * @author 向帅 用户登录异常
 * @Date 2019/7/27 17:11
 **/
public class AuthException extends RuntimeException {

    private static final long serialVersionUID = -7429924842303522242L;

    String message;

    ReturnCode returnCode;

    public AuthException() {
        super();
    }

    public AuthException(String message) {
        this.message = message;
    }

    public AuthException(ReturnCode returnCode) {
        this.returnCode = returnCode;
    }

    public AuthException(String message, ReturnCode returnCode) {
        this.message = message;
        this.returnCode = returnCode;
    }

    public AuthException(String message, Throwable cause) {
        super(message, cause);
    }

    public AuthException(Throwable cause) {
        super(cause);
    }

    protected AuthException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ReturnCode getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(ReturnCode returnCode) {
        this.returnCode = returnCode;
    }
}
